package com.gxa.modules.mapper;

import com.gxa.common.vo.PageRecv;
import com.gxa.modules.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BorrowCenterMapper {
//    查询贷前贷中贷后信息
    public List<Loan> selectBeforeCredit(PageRecv pageRecv);
    public Integer selectBeforeCreditCount(PageRecv pageRecv);
//    根据中间表查询对应的
    public Audit selectAuditById(long id);
//根据loan_id查询审核表详情
    List<Audit> selectAllAudit(long loan_id);
//    修改Loan表的审批金额和综合利率
    public Integer updateLoan(AuditAdd auditAdd);
    public Integer addAudit(AuditAdd auditAdd);
//    查询approveLoan是否有对应的记录
    public ApproveLoan selectApproveLoanById(long loan_id);
    //添加新的approveLoan记录
    public Integer addApproveLoan(long loan_id);
    public Integer updateApproveLoan(@Param("loan_id") long loan_id,@Param("id") long id,@Param("state") String state);
}
